<?php 

namespace App\Repositories;

class ReplyRepository extends Repository 
{
    public function model() 
    {
        return 'App\Models\Reply';
    }  

    public function paginateList($where=[], $page = 20)
    {
    	return $this->model->with('order')->select('id', 'order_id', 'user_id', 'content', 'created_at', 
    										\DB::raw('count(*) as count'))->groupBy('order_id')->paginate($page);
    }
}